package cn.openbiotoken;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import java.util.List;

public interface BiometricsDetector<Detected> {

    @Nullable
    default Detected detect() {
        @NonNull final List<Detected> list = detect(1);
        return list.size()>0 ? list.get(0) : null;
    }

    @NonNull
    List<Detected> detect(final int limit);
}
